<?php 
defined('IN_SITE') or exit('Access Denied');
get_header();
?>
<body>

<table cellpadding="2" cellspacing="1" class="table_form">
   <caption>添加菜单</caption>
   <form action="?module=<?=$module?>&action=<?=$action?>" method="post" name="myform">
	<tr>
	  <th><strong>上级菜单</strong></th>
	  <td><?=form::select_menu(0, 'info[parentid]', 'parentid', '无（作为一级栏目）', $parentid,'',2)?> </td>
     </tr>
	<tr> 
      <th><font color="red">*</font> <strong>菜单名称</strong></th>
      <td><input name="info[name]" type="text" value="<?=$name?>" size="20" maxlength="20" require="true" datatype="limit" min="2" max="20" msg="不得少于2个字符超过20个字符|"></td>
    </tr>
	<tr> 
      <th><strong>链接地址</strong></th>
      <td><input name="info[url]" type="text" value="<?=$url?>" maxlength="100" style="width:80%"></td>
    </tr>
    <tr> 
      <th><strong>打开窗口</strong></th>
      <td><?=form::select($TARGET, 'info[target]', 'target', $target)?></td>
    </tr>
    <tr> 
      <th></th>
      <td>
	    <input type="hidden" name="forward" value="<?=$forward?>"> 
	    <input type="Submit" name="dosubmit" value=" 确定 "> 
        &nbsp; <input type="reset" name="reset" value=" 清除 "> </td>
    </tr>
  </form>
</table>
</body>
</html>
<script language="javascript" type="text/javascript">
$().ready(function() {
	  $('form').checkForm(1);
	});
</script>